/**
 * Created by oureda on 5/29/16.
 */
var crypto = require('crypto');
var generatorToken = (phone,pwd) => {
    var token = crypto
        .createHmac('sha1','OurEDA')
        .update(phone + '&' + pwd)
        .digest('base64');
    console.log(token);
    return token;
};

var Sign = module.exports = {
    generatorToken
};
